/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2022-12-11
 * Time: 10:55
 */
//计算星期的公式
    //每年的1，2月要当作上一年的13，14月
public class Test2 {
    public static void main(String[] args) {
        int year = 2021;
        int month = 14;
        int day = 11;
        int w = (day + 2 * month + 3 * (month + 1) / 5 + year + year / 4 - year / 100 + year / 400) % 7;
        System.out.println(w + 1);
    }
}
